package com.moyun.search.controller;

import com.moyun.search.common.base.BaseController;
import com.moyun.search.common.result.Result;
import com.moyun.search.service.ProjectAttachmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 项目附件
 * @author: zealon
 * @since: 2021/12/24
 */
@RestController
@RequestMapping("project-attachment")
public class ProjectAttachmentController extends BaseController {

    @Autowired
    private ProjectAttachmentService projectAttachmentService;

    @GetMapping("list")
    public Result getList(Integer projectId){
        return this.projectAttachmentService.getList(projectId);
    }
}
